import request from "@/utils/request"

// 登录请求参数类型
type QuestionParamsType = {
    id:number| string;
    questionType:number| string;
    level:number| string;
    subjectId:number| string;
    pageIndex:number;
    pageSize:number
}
//请求编辑参数类型
type QuestionResponseType<T> = {
    total:number;
    list:T[]
}

//返回值类型
export type QuestionType ={
    id:number;
    questionType:number;
    textContentId:number| string;
    createTime:string;
    subjectId:number;
    createUser:number;
    score:string;
    status:number;
    correct:string;
    analyzeTextContentId:number| string;
    difficult:number;
    shortTitle:string;
}
export function QuestiontPage(data: QuestionParamsType) {
    return request.post<QuestionResponseType<QuestionType>>("/api/admin/question/page", data)
}